package com.winter.util.serializer;

import java.io.IOException;

/**
 * 描述：序列化接口
 *
 * @author Yongge
 * @version 1.0
 **/
public interface Serializer {
    byte[] serialize(Object object) throws IOException;

    Object deserialize(byte[] bytes) throws IOException;

    <T> T deserialize(byte[] bytes, Class<T> clazz) throws IOException;

}
